package com.neuedu.javase.tools.date;


import java.util.Calendar;
import java.util.Date;

/***
 * 项目名称:  MyJavaSE 
 * 包：  com.neuedu.javase.tools.date 
 * date:   2025/10/30   14:20  
 * 描述:  
 *  @author : 张金山
 *  作者博客:   https://blog.fulfill.com.cn
 */
public class Transfer {


    public static void main(String[] args) {


        Calendar cal = Calendar.getInstance();

        // Calendar  ---> Date
        Date time = cal.getTime();



        //   Date --->  Calendar
        Date now = new Date();
        Calendar cal2 = Calendar.getInstance();
        cal2.setTime(now);

    }
}
